POV-Ray : Newsgroups : povray.general : Can you use the trace command on a heightfield? : Re: Can you use the trace command on a heightfield? Server Time
30 Jul 2024 00:28:05 EDT (-0400)
  Re: Can you use the trace command on a heightfield?  
From: Warp
Date: 8 Apr 2010 05:28:30
Message: <4bbda1be@news.povray.org>
Dre <and### [at] gmailcom> wrote:
> Yet this does:

> #declare norm = <0, 0, 0>;
> #declare startPoint =<xPos, 10, zPos>;
> #declare endPoint = <xPos, -10, zPos>;
> trace(object, startPoint, endPoint, norm)

  I don't think it does (well, not in the way you want). The third parameter
of trace() specifies a direction, not an endpoint.

  Probably you want the third parameter to be <0, -1, 0> because that's
the direction you are shooting the rays towards.

-- 
                                                          - Warp


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.